package com.chenxin.quartz.task.mes;

import com.chenxin.common.utils.StringUtils;
import com.chenxin.quartz.process.mesTask.ITokenRequestProcess;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("tokenGenTask")
public class TokenGenTask {
    @Autowired
    private ITokenRequestProcess tokenRequestProcess;

    public void run(String method) {
        if (StringUtils.isNull(method)) {
            return;
        }
        tokenRequestProcess.call(method);
    }
}
